import request from '@/utils/request'

//查询违纪列表
export function weijiList (data) {
  return request({
    url: '/violativeApply/findViolativeApplyPageList',
    method: 'post',
    data
  })
}

//创建违纪流程
export function weijiAdd (data) {
  return request({
    url: '/violativeApply/createViolativeApply',
    method: 'post',
    data
  })
}

//违纪详情
export function weijiDetails (id) {
  return request({
    url: '/violativeApply/findViolativeApplyDetail/' + id,
    method: 'get',
  })
}

//撤销违纪申请
export function weijiCancel (data) {
  return request({
    url: '/violativeApply/cancelViolativeApply',
    method: 'post',
    data
  })
}

//查询历史审批记录
export function historyWorkFlowList (data) {
  return request({
    url: 'workflow/historyWorkFlowList',
    method: 'post',
    data
  })
}

//查询全部班级
export function findClassAll (data) {
  return request({
    url: '/violativeApply/findClassAll',
    method: 'post',
    data
  })
}

//查询班级学生
export function findStudentByClassId (data) {
  return request({
    url: '/violativeApply/findStudentByClassId/'+data,
    method: 'get'
  })
}

export function violativeProcess (data) {
  return request({
    url: '/violativeApply/violativeProcess',
    method: 'post',
    data
  })
}
